package com.read.mapper;

import com.read.dto.result.NovelTypeResultDto;
import com.read.entity.NovelType;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface NovelTypeMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(NovelType record);

    int insertSelective(NovelType record);

    NovelType selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(NovelType record);

    int updateByPrimaryKey(NovelType record);

    /**
     * @description 根据类型归属查询小说类型
     * @author sh-sunb6
     * @date 2019-03-03 16:20
     * @param channel 1男生频道，2女生频道，3二次元，9其他
     */
    List<NovelTypeResultDto> selectNovelTypeByChannel(@Param(value="channel") int channel);
}